//
//  ZYLaunchViewController.m
//  YaYa
//
//  Created by 张亚 on 2019/1/9.
//  Copyright © 2019年 张亚. All rights reserved.
//

#import "ZYLaunchViewController.h"

@interface ZYLaunchViewController ()

@end

@implementation ZYLaunchViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor whiteColor];
    UIButton * button = [UIButton buttonWithType:UIButtonTypeCustom];
    button.frame = CGRectMake(0, 20, 20, 20);
    [button setImage:[UIImage imageNamed:@"fh"] forState:UIControlStateNormal];
    [button addTarget:self action:@selector(backPre) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:button];
    
}
- (void)backPre {
    [self dismissViewControllerAnimated:YES completion:nil];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
